Repository navigation
Test quote, trim, trimLower and isBlank directly - #10
Merged
Merged
Conversation
quote was only reached through json, which never exercised the \b, \f and \r escapes, \u00XX for NUL/VT/0x1F, or DEL and UTF-8 passing through unescaped. The trimming helpers decide the environment opt-out, blank keys and the version tag, and had no test of their own. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric (anchored on CI run 39120516362 and the local
Observations (judgment calls, not blocking):
This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stage B (unit-test expansion) cycle: direct tests are added for the
trace_client::detailstring helpers that had none of their own.quoteEscapesWhatJsonRequiresAndPassesTheRestThrough—detail::quotewas only reached throughdetail::json, which never exercised the\b,\fand\rescapes, the\u00XXform for NUL / VT / 0x1F, or DEL,/and UTF-8 passing through unescaped. An all-256-bytes sweep asserts that no raw control character reaches the body.trimmingTreatsEveryAsciiSpaceAlike—detail::trim,detail::trimLoweranddetail::isBlankdecide the environment opt-out, blank keys/names and the trimmed version tag, and had no direct test. Every ASCII space is shown to be trimmed alike, only ASCII letters to be folded, and a no-break space (U+00A0) to be non-blank.These are characterization tests only:
trace_client.hppis unchanged, and every assertion matches the current behavior.No tracking issue. The gap was found during triage by checking every
detail::function for a direct test intest/test_trace_client.cpp.Skipped issue: #1 (Windows ignores
TRACE_CLIENT_CURLwhenSystem32\curl.exeexists) is waiting for an owner decision between honoring the override and documenting the current behavior, so it was not picked.Test plan
make test(g++, C++11,-Werror):46 tests, 0 failed checks(up from 44)make test STD=c++17:46 tests, 0 failed checksBuildmatrix (linux g++/clang++ × 11/17/20, libcurl, sanitizers, macOS, Windows/MSVC) greenThis PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson